	<cfset errorStr = "">
	<cfif not len(trim(attributes.title))>
		<cfset errorStr = errorStr & application.resourceBundle.getResource("mustincludetitle") & "<br />">
	<cfelse>
		<cfset attributes.title = trim(attributes.title)>
	</cfif>
	<cfif not isDate(attributes.posted)>
		<cfset errorStr = errorStr & application.resourceBundle.getResource("invaliddate") & "<br />">
	</cfif>
	<cfif not len(trim(attributes.body))>
		<cfset errorStr = errorStr & application.resourceBundle.getResource("mustincludebody") & "<br />">
		<cfset origbody = "">
	<cfelse>
		<cfset attributes.body = trim(attributes.body)>
		<cfset origbody = attributes.body>
		<!--- handle <code> wrap --->
		<cfif findNoCase("<code>",attributes.body) and findNoCase("</code>",attributes.body)>
			<cfset counter = findNoCase("<code>",attributes.body)>
			<cfloop condition="counter gte 1">
				<cfset codeblock = reFindNoCase("(.*)(<code>)(.*)(</code>)(.*)",attributes.body,1,1)>					
				<cfif arrayLen(codeblock.len) is 6>
					<cfset codeportion = mid(attributes.body, codeblock.pos[4], codeblock.len[4])>
					<cfmodule template="/#application.root#/tags/coloredcode.cfm" data="#trim(codeportion)#" result="result">
					<cfset newbody = mid(attributes.body, 1, codeblock.len[2]) & result & mid(attributes.body,codeblock.pos[6],codeblock.len[6])>
					<cfset attributes.body = newbody>
					<cfset counter = findNoCase("<code>",attributes.body,counter)>
				<cfelse>
					<!--- bad crap, maybe <code> and no ender, or maybe </code><code> --->
					<cfset counter = 0>
				</cfif>
			</cfloop>
		</cfif>

		<!--- Handle potential <more/> --->
		<cfif findNoCase("<more/>",attributes.body) gte 2>
			<cfset pos = findNoCase("<more/>",attributes.body) + 7>
			<cfset moreText = trim(right(attributes.body,len(attributes.body)-pos))>
			<cfset attributes.body = trim(left(attributes.body,pos-8))>
		<cfelse>
			<cfset moreText = "">
		</cfif>
	</cfif>
	<cfif (not isDefined("attributes.categories") or attributes.categories is 0) and not len(trim(attributes.newCategory))>
		<cfset errorStr = errorStr & application.resourceBundle.getResource("mustincludecategory") & "<br />">
	<cfelse>
		<cfset attributes.newCategory = trim(htmlEditFormat(attributes.newCategory))>
	</cfif>
	
	<cfset attributes.alias = trim(htmlEditFormat(alias))>
